#include "editor.hpp"
using namespace sdl_engine;

#define VERSION "1.0.0"

int main(int argc, char** argv) {
    Window::CreateInfo windowCreateInfo;
    windowCreateInfo.SetTitle("GuiEditor v" VERSION)
                    .SetSize(size(1024, 720));

    Renderer::CreateInfo rendererCreateInfo;

    engine.Init(argc, argv, windowCreateInfo, rendererCreateInfo);
    gui::Init(engine.GetRenderer(),
              engine.GetFontStock().Create("assets/SimHei.ttf", 15));

    GuiEditor app;

    engine.SetApp(&app);

    RUN_ENGINE();

    gui::Shutdown();
    engine.Shutdown();
}
